﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site1.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Consultant.Core.QueryForAdmin>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Запросы
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Запросы</h2>

    <table>
        <tr>
            <th></th>
            <th>
                Имя
            </th>
            <th>
                Фамилия
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Добавить", "AddQuery", new { id=item.Id })%> |
                <%= Html.ActionLink("Отклонить", "DeleteQuery", new { id = item.Id })%>
            </td>
            <td>
                <%= Html.Encode(item.FirstName) %>
            </td>
            <td>
                <%= Html.Encode(item.LastName) %>
            </td>
        </tr>
    
    <% } %>

    </table>
</asp:Content>

